﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartMarketTelas.localhost;

namespace SmartMarketTelas
{
    public partial class FormCadastrar : Form
    {
        public FormCadastrar()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Cliente cliente = new Cliente();
            Service1 serv = new Service1();

            cliente.Nome = textBox1.Text;
            cliente.Cpf = textBox2.Text;
            cliente.Rg = textBox3.Text;
            cliente.Telefone = textBox4.Text;
            cliente.EMail = textBox5.Text;
            
            serv.cadastrarCliente(cliente);
            


        }
    }
}
